﻿@namespace Code.Shared

@inherits CodeComponentBase
@inject IKeyLoadEventBus KeyLoadEventBus

<MForm Model="_model" EnableValidation
       OnValidSubmit="HandleOnValidSubmit"
       OnInvalidSubmit="HandleOnInvalidSubmit">
    <MTextField Dark="LayoutOptions.Dark" @bind-Value="_model.Path"
                Label="项目路径">
    </MTextField>
    <MSwitch @bind-Value="@_model.Dark" LeftText="光明" RightText="黑暗" Color="black" TrackColor="#E5E6EB"></MSwitch>
    <MButton Dark="LayoutOptions.Dark" Type="submit">保存</MButton>
</MForm>